package com.yumijinfu.entity;

import org.json.*;

import java.io.Serializable;

/**
 * 认筹实体
 */

public class Page implements Serializable {
	//1：可投资；2：已结束
    private String endStart;
    //期限：天数or月数
    private String borrowTimeLimit;
    //1：天标；2：月标
    private String isDay;
    //标题
    private String borrowTitle;
    //标ID
    private String eid;
    //标状态
    private String borrowStatus;
    //1(未发标)2(已发标)
    private String published;
    //总金额
    private String borrowSum;
    //允许投标时间
    private String allowTenderTime;
    //年利率
    private String annualInterestRate;
    
    
	public Page () {
		
	}	
        
    public Page (JSONObject json) {
    
        this.endStart = json.optString("endStart");
        this.borrowTimeLimit = json.optString("borrowTimeLimit");
        this.isDay = json.optString("isDay");
        this.borrowTitle = json.optString("borrowTitle");
        this.eid = json.optString("eid");
        this.borrowStatus = json.optString("borrowStatus");
        this.published = json.optString("published");
        this.borrowSum = json.optString("borrowSum");
        this.allowTenderTime = json.optString("allowTenderTime");
        this.annualInterestRate = json.optString("annualInterestRate");

    }
    
    public String getEndStart() {
        return this.endStart;
    }

    public void setEndStart(String endStart) {
        this.endStart = endStart;
    }

    public String getBorrowTimeLimit() {
        return this.borrowTimeLimit;
    }

    public void setBorrowTimeLimit(String borrowTimeLimit) {
        this.borrowTimeLimit = borrowTimeLimit;
    }

    public String getIsDay() {
        return this.isDay;
    }

    public void setIsDay(String isDay) {
        this.isDay = isDay;
    }

    public String getBorrowTitle() {
        return this.borrowTitle;
    }

    public void setBorrowTitle(String borrowTitle) {
        this.borrowTitle = borrowTitle;
    }

    public String getEid() {
        return this.eid;
    }

    public void setEid(String eid) {
        this.eid = eid;
    }

    public String getBorrowStatus() {
        return this.borrowStatus;
    }

    public void setBorrowStatus(String borrowStatus) {
        this.borrowStatus = borrowStatus;
    }

    public String getPublished() {
        return this.published;
    }

    public void setPublished(String published) {
        this.published = published;
    }

    public String getBorrowSum() {
        return this.borrowSum;
    }

    public void setBorrowSum(String borrowSum) {
        this.borrowSum = borrowSum;
    }

    public String getAllowTenderTime() {
        return this.allowTenderTime;
    }

    public void setAllowTenderTime(String allowTenderTime) {
        this.allowTenderTime = allowTenderTime;
    }

    public String getAnnualInterestRate() {
        return this.annualInterestRate;
    }

    public void setAnnualInterestRate(String annualInterestRate) {
        this.annualInterestRate = annualInterestRate;
    }


    
}
